//
//  QRCodeMyViewController.swift
//  WEIBO_SWIFT
//
//  Created by 岳挺 on 15/7/1.
//  Copyright © 2015年 yueting. All rights reserved.
//

import UIKit

class QRCodeMyViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    override func loadView() {
        super.loadView()
        view.backgroundColor = UIColor.whiteColor()
        view.addSubview(QRCodeView)
    }
    
    
    lazy var QRCodeView : UIImageView = {
        let imageV = UIImageView()
        imageV.bounds = CGRectMake(0, 0, 200, 200)
        imageV.center = self.view.center
        imageV.image = QRCode.generateImage("true love", avatarImage: UIImage(named: "91e56503e5b314e49c1fa6d4662bfea0"))
        return imageV
        }()
}
